$(function () {
    groupRecordFindAll()
})

function groupRecordFindAll() {
    let data=myAjaxGet("/user/groupRecordFindAll","","get");
    data=data.data;
    let html='';
    for (let i=0;i<data.length;i++){
        html+='        <tr>\n' +
            '            <td>'+data[i].id+'</td>\n' +
            '            <td>'+data[i].name+'</td>\n' +
            '            <td>'+data[i].code+'</td>\n' +
            '            <td>'+data[i].groupCode+'</td>\n' +
            '            <td>'+data[i].frontGroupCode+'</td>\n' +
            '            <td>'+data[i].adjustmentGroupDate+'</td>\n' +
            '            <td><input type="button" value="用户查看" onclick="groupRecordToUserFindByCode(\''+data[i].code+'\')"></td>\n' +
            '        </tr>';
    }
    $("#groupRecordFindAll").html(html);
}

function groupRecordToUserFindByCode(code) {
    localStorage.setItem("code",code);
    $('#middle-reght').load('../html/user/user.html');
}